# Contributor: Sam Whited <sam@samwhited.com>
# Maintainer: Sam Whited <sam@samwhited.com>
pkgname=py3-aioxmpp
_pkgname=aioxmpp
pkgver=0.13.2
pkgrel=0
pkgdesc="An XMPP library in pure Python and using asyncio."
url="https://pypi.org/project/aioxmpp/"
arch="all"
license="LGPL-3.0-only"
depends="
py3-aioopenssl
py3-aiosasl
py3-asn1
py3-asn1-modules
py3-babel
py3-dnspython
py3-lxml
py3-multidict
py3-openssl
py3-sortedcollections
py3-sortedcontainers
py3-tzlocal
python3
"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # tests not included in source package.

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 COPYING.LESSER COPYING.gpl3 LICENSES README.rst \
		-t "$pkgdir"/usr/share/licenses/$pkgname
}

sha512sums="
24421edb211088b286c37593747032c9b8f1a9f9c31e555f3470d4e40844fe6c83f459f68bca0a8b5b90cbb71a6ce73ee121af4c1e11dc0492763d92c57d58c4  aioxmpp-0.13.2.tar.gz
"
